package top.yueyazhui.mysql_audit_log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 审计日志
 * </p>
 *
 * @author yueyazhui
 * @since 2022-09-25
 */
@TableName("audit_log")
public class AuditLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 消息类型
     */
    private String msgType;

    /**
     * 日期
     */
    private Date date;

    /**
     * 线程ID
     */
    private String threadId;

    /**
     * 查询ID
     */
    private String queryId;

    /**
     * 用户
     */
    private String user;

    /**
     * 保密用户
     */
    private String privUser;

    /**
     * IP
     */
    private String ip;

    /**
     * 主机
     */
    private String host;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 客户端名称
     */
    private String clientName;

    /**
     * PID
     */
    private String pid;

    /**
     * 客户端版本
     */
    private String clientVersion;

    /**
     * 平台
     */
    private String platform;

    /**
     * 状态
     */
    private String status;

    /**
     * 命令
     */
    private String cmd;

    /**
     * 查询
     */
    private String query;

    /**
     * 运行时版本
     */
    private String runtimeVersion;

    /**
     * 客户端许可证
     */
    private String clientLicense;

    /**
     * 运行时供应商
     */
    private String runtimeVendor;

    /**
     * 行数
     */
    private String rowsNumber;

    /**
     * 对象
     */
    private String objects;

    private List<AuditLogObjs> auditLogObjsList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    public String getThreadId() {
        return threadId;
    }

    public void setThreadId(String threadId) {
        this.threadId = threadId;
    }
    public String getQueryId() {
        return queryId;
    }

    public void setQueryId(String queryId) {
        this.queryId = queryId;
    }
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
    public String getPrivUser() {
        return privUser;
    }

    public void setPrivUser(String privUser) {
        this.privUser = privUser;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }
    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }
    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }
    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }
    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }
    public String getRuntimeVersion() {
        return runtimeVersion;
    }

    public void setRuntimeVersion(String runtimeVersion) {
        this.runtimeVersion = runtimeVersion;
    }
    public String getClientLicense() {
        return clientLicense;
    }

    public void setClientLicense(String clientLicense) {
        this.clientLicense = clientLicense;
    }
    public String getRuntimeVendor() {
        return runtimeVendor;
    }

    public void setRuntimeVendor(String runtimeVendor) {
        this.runtimeVendor = runtimeVendor;
    }

    public String getRowsNumber() {
        return rowsNumber;
    }

    public void setRowsNumber(String rowsNumber) {
        this.rowsNumber = rowsNumber;
    }

    public String getObjects() {
        return objects;
    }

    public void setObjects(String objects) {
        this.objects = objects;
    }

    public List<AuditLogObjs> getAuditLogObjsList() {
        return auditLogObjsList;
    }

    public void setAuditLogObjsList(List<AuditLogObjs> auditLogObjsList) {
        this.auditLogObjsList = auditLogObjsList;
    }

    @Override
    public String toString() {
        return "AuditLog{" +
            "id=" + id +
            ", msgType=" + msgType +
            ", date=" + date +
            ", threadId=" + threadId +
            ", queryId=" + queryId +
            ", user=" + user +
            ", privUser=" + privUser +
            ", ip=" + ip +
            ", host=" + host +
            ", os=" + os +
            ", clientName=" + clientName +
            ", pid=" + pid +
            ", clientVersion=" + clientVersion +
            ", platform=" + platform +
            ", status=" + status +
            ", cmd=" + cmd +
            ", query=" + query +
            ", runtimeVersion=" + runtimeVersion +
            ", clientLicense=" + clientLicense +
            ", runtimeVendor=" + runtimeVendor +
            ", rowsNumber=" + rowsNumber +
            ", objects=" + objects +
            ", auditLogObjsList=" + auditLogObjsList +
        "}";
    }
}
